package com.bugsnag.ohos;

import java.util.Map;

/**
 * MetadataAware
 *
 * @since 2021-07-01
 */
public interface MetadataAware {
    /**
     * add Metadata
     *
     * @param section
     * @param value
     */
    void addMetadata(String section, Map<String, Object> value);

    /**
     * add Metadata
     *
     * @param section
     * @param key
     * @param value
     */
    void addMetadata(String section, String key, Object value);

    /**
     * clear Metadata
     *
     * @param section
     */
    void clearMetadata(String section);

    /**
     * clear Metadata
     *
     * @param section
     * @param key
     */
    void clearMetadata(String section, String key);

    /**
     * get meta data
     *
     * @param section
     * @return meta data
     */
    Map<String, Object> getMetadata(String section);

    /**
     * get meta data
     *
     * @param section
     * @param key
     * @return meta data
     */
    Object getMetadata(String section, String key);
}
